package com.sunshin.staticfactorymethod;

/**
 * @Author: WeiHong
 * @Date: 2017/3/28 10:10
 */
public class App {

    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            System.out.println(Gender.getFemale().getDescription());
            System.out.println(Gender.getFemale().hashCode());
            BeanTest t = new BeanTest();
            System.out.println(t.getClass().hashCode());
        }
        System.out.println(Gender.getMale().getDescription());
        System.out.println(Animal.getCat().getDescription());
        System.out.println(Animal.getDog().getDescription());

        Singleton.getInstance();
    }
}
